<div class="container content">
    <div class="trong-content">
	<div class="left">
	    <?php $this->renderPartial('//layouts/menu_left'); ?>
	</div><!--left-->
	<div class="center">

	    <div class="box update-account-box">
		<div class="new-mem">

		    <div class="title">Update ideal Profile</div>
		    <?php
		    $success = Yii::app()->user->getFlash('success');
		    if ($success) {
			?>
    		    <div class='alert alert-success'><?php echo $success ?></div>
			<?php
		    }
		    ?>
		    <?php
		    $form = $this->beginWidget('CActiveForm', array(
			'id' => 'ideal-profile-form',
			'enableAjaxValidation' => false,
			'enableClientValidation' => true,
			'clientOptions' => array(
			    'validateOnSubmit' => true
			),
			'htmlOptions' => array(
			    'class' => 'form-horizontal'
			)
		    ));
		    ?>		    		   		    
		    <table>
			<tr>
			    <td>Age</td>
			    <td>From: <?php echo $form->dropDownList($model, 'age_from', User::getListAge(), array('class' => 'select-ideal-profile')); ?> To: <?php echo $form->dropDownList($model, 'age_to', User::getListAge(), array('class' => 'select-ideal-profile')); ?>
				<?php echo $form->error($model, 'age_from'); ?>
			    </td>
			</tr>

			<tr>
			    <td>Height</td>
			    <td>From: <?php echo $form->dropDownList($model, 'height_from', User::getListHeight(), array('class' => 'select-ideal-profile')); ?> To: <?php echo $form->dropDownList($model, 'height_to', User::getListHeight(), array('class' => 'select-ideal-profile')); ?>
				<?php echo $form->error($model, 'height_from'); ?>
			    </td>
			</tr>

			<tr>
			    <td  class='label-column-edit-user'>Marital Status</td>
			    <td><?php echo $form->dropDownList($model, 'marital', User::getListMarital(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Ethnicity</td>
			    <td><?php echo $form->dropDownList($model, 'ethnicity', User::getListEthnicity(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Relationship</td>
			    <td><?php echo $form->dropDownList($model, 'relationship', User::getListRelationship(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Zodiac</td>
			    <td><?php echo $form->dropDownList($model, 'zodiac', User::getListZodiac(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Smoking Preference</td>
			    <td><?php echo $form->dropDownList($model, 'smoking', User::getListSmoking(), array('class' => 'select-on-profile')); ?></td>
			</tr>   
			<tr>
			    <td  class='label-column-edit-user'>General Build</td>
			    <td><?php echo $form->dropDownList($model, 'general_build', User::getListBuild(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Children</td>
			    <td><?php echo $form->dropDownList($model, 'children', User::getListChildren(), array('class' => 'select-on-profile')); ?></td>
			</tr>
			<tr>
			    <td  class='label-column-edit-user'>Religion</td>
			    <td><?php echo $form->dropDownList($model, 'religion', User::getListReligion(), array('class' => 'select-on-profile')); ?></td>
			</tr>
		    </table>



		    <input type='submit' name='save' value='Save changes' class='center-column-edit-user btn btn-primary'/>
		    <?php $this->endWidget() ?>
		</div>		
	    </div><!--box-->

	</div><!--center-->
	<div class="right">
	    <?php $this->widget('application.widgets.leftprofile.PercentComplete') ?>
	    <?php $this->widget('application.widgets.leftprofile.Interested'); ?>
	</div><!--right-->
    </div><!--trong-content-->


</div><!--content-->
